package work.lpssfxy.www.campuslifeassistantserver.serviceImpl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import work.lpssfxy.www.campuslifeassistantserver.bean.UserBean;
import work.lpssfxy.www.campuslifeassistantserver.mapper.UserMapper;
import work.lpssfxy.www.campuslifeassistantserver.service.UserService;

/**
 * created by on 2021/8/10
 * 描述：Service层业务实现类编写，注意要注解@Service，注入DAO：
 *
 * @author ZSAndroid
 * @create 2021-08-10-3:30
 */
@Service
public class UserServiceImpl implements UserService {

    //将DAO注入Service层
    @Autowired
    private UserMapper userMapper;

    @Override
    public UserBean loginIn(String name, String password) {
        return userMapper.getInfo(name,password);
    }
}
